// component/Vast-module/@Vast/Dialog/index.js
Component({
	/**
	 * 组件的属性列表
	 */
	properties: {

    showDialog: Boolean,
    title: String,
    message:String,

    titleCol:{
      type: String,
      value: "#333333"
    },
    messageCol:{
      type: String,
      value: "#b8b8b8"
    },

    cancelText:{
      type: String,
      value: "取消"
    },
    confirmText:{
      type: String,
      value: "确定"
    },
    cancelCol:{
      type: String,
      value: "#ffad6a"
    },
    confirmCol:{
      type: String,
      value: "#00a0fd"
    },

	},

	/**
	 * 组件的初始数据
	 */
	data: {

	},

	/**
	 * 组件的方法列表
	 */
	methods: {


    cancelClick(e){
      var Click = "cancelClick"
      this.setData({
        showDialog: false
      })
      this.triggerEvent("cancelClick",Click)  

    },

    confirmClick(e){
      var Click = "confirmClick"
      this.setData({
        showDialog: false
      })
      this.triggerEvent("confirmClick",Click)  
    },

	}
})
